package co.fitstart.weapp.api.service;

import java.math.BigDecimal;
import java.util.List;

import co.fitstart.entity.user.Student;
import co.fitstart.entity.user.User;
import co.fitstart.entity.user.agent.Agent;
import co.fitstart.entity.user.agent.AgentDiscount;
import co.fitstart.entity.user.agent.AgentRecord;
import co.fitstart.entity.user.agent.OfflineAgent;

/**
 * 
 * @author dan
 *
 */
public interface UserAgentService {
    
    /**
     * 
     * @param user
     * @return
     */
    public Agent load(User user);
    
    /**
     * 
     * @param student
     * @return
     */
    public List<OfflineAgent> listOfflineAgent(Student student);
    
    /**
     * 
     * @param agent
     * @return
     */
    public List<AgentDiscount> listDiscount(Agent agent);
    
    /**
     * 
     * @param agent
     * @return
     */
    public List<AgentRecord> listAgentRecord(Agent agent);
    
    /**
     * 
     * @param agent
     * @param account
     * @param webchatId
     */
    public void editAccount(Agent agent, String account, String realName);
    
    /**
     * 
     * @param agent
     * @param offer
     */
    public void withdraw(Agent agent, BigDecimal offer);
    

}
